package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 动态表 实体类
 * @author chenjiehong
 * @date 2019-11-29 15:15:38
 * @since 1.0
 */
@TableName(value = "dynamic")
public class Dynamic  {

    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 标题
	 */
	private String title; 

	/**
	 * 内容 富文本
	 */
	private String content; 

	/**
	 * 用户id
	 */
	@TableField(value = "user_id")
	private Integer userId; 

	/**
	 * 类型
	 */
	private Integer type; 

	/**
	 * 夫行业类别编码
	 */
	@TableField(value = "parent_category_code")
	private String parentCategoryCode; 

	/**
	 * 夫行业类别名称
	 */
	@TableField(value = "parent_category_name")
	private String parentCategoryName; 

	/**
	 * 子行业类别名称
	 */
	@TableField(value = "sub_category_name")
	private String subCategoryName; 

	/**
	 * 子行业类别编码
	 */
	@TableField(value = "sub_category_code")
	private String subCategoryCode; 

	/**
	 * 省份编码
	 */
	@TableField(value = "province_code")
	private String provinceCode; 

	/**
	 * 省份名称
	 */
	@TableField(value = "province_name")
	private String provinceName; 

	/**
	 * 城市编码
	 */
	@TableField(value = "city_code")
	private String cityCode; 

	/**
	 * 城市名称
	 */
	@TableField(value = "city_name")
	private String cityName; 

	/**
	 * 标签 逗号分割
	 */
	@TableField(value = "tags")
	private String tags;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time")
	private Date createTime; 

	/**
	 * 自动关闭时间
	 */
	@TableField(value = "close_time")
	private Date closeTime; 

	/**
	 * 可见性
	 */
	private Integer visibility; 

	/**
	 * 状态 1：正常 0:隐藏 2:关闭评论和点赞
	 */
	private Integer state; 

	/**
	 * 点赞数量
	 */
	@TableField(value = "like_quantity")
	private Integer likeQuantity; 

	/**
	 * 评论数量
	 */
	@TableField(value = "comment_quantity")
	private Integer commentQuantity; 

	/**
	 * 分享数量
	 */
	@TableField(value = "share_quantity")
	private Integer shareQuantity;


	/**
	 * 图片数量
	 */
	@TableField(value = "images_quantity")
	private Integer imagesQuantity;



	/**
	 * 属性数量
	 */
	@TableField(value = "attribute_quantity")
	private Integer attributeQuantity;
	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public String getTitle() {
		return title;
	}

    public void setTitle(String title) {
    	this.title = title;
    }
	public String getContent() {
		return content;
	}

    public void setContent(String content) {
    	this.content = content;
    }
	public Integer getUserId() {
		return userId;
	}

    public void setUserId(Integer userId) {
    	this.userId = userId;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }
	public String getParentCategoryCode() {
		return parentCategoryCode;
	}

    public void setParentCategoryCode(String parentCategoryCode) {
    	this.parentCategoryCode = parentCategoryCode;
    }
	public String getParentCategoryName() {
		return parentCategoryName;
	}

    public void setParentCategoryName(String parentCategoryName) {
    	this.parentCategoryName = parentCategoryName;
    }
	public String getSubCategoryName() {
		return subCategoryName;
	}

    public void setSubCategoryName(String subCategoryName) {
    	this.subCategoryName = subCategoryName;
    }
	public String getSubCategoryCode() {
		return subCategoryCode;
	}

    public void setSubCategoryCode(String subCategoryCode) {
    	this.subCategoryCode = subCategoryCode;
    }
	public String getProvinceCode() {
		return provinceCode;
	}

    public void setProvinceCode(String provinceCode) {
    	this.provinceCode = provinceCode;
    }
	public String getProvinceName() {
		return provinceName;
	}

    public void setProvinceName(String provinceName) {
    	this.provinceName = provinceName;
    }
	public String getCityCode() {
		return cityCode;
	}

    public void setCityCode(String cityCode) {
    	this.cityCode = cityCode;
    }
	public String getCityName() {
		return cityName;
	}

    public void setCityName(String cityName) {
    	this.cityName = cityName;
    }

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public Date getCreateTime() {
		return createTime;
	}

    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }
	public Date getCloseTime() {
		return closeTime;
	}

    public void setCloseTime(Date closeTime) {
    	this.closeTime = closeTime;
    }
	public Integer getVisibility() {
		return visibility;
	}

    public void setVisibility(Integer visibility) {
    	this.visibility = visibility;
    }
	public Integer getState() {
		return state;
	}

    public void setState(Integer state) {
    	this.state = state;
    }
	public Integer getLikeQuantity() {
		return likeQuantity;
	}

    public void setLikeQuantity(Integer likeQuantity) {
    	this.likeQuantity = likeQuantity;
    }
	public Integer getCommentQuantity() {
		return commentQuantity;
	}

    public void setCommentQuantity(Integer commentQuantity) {
    	this.commentQuantity = commentQuantity;
    }
	public Integer getShareQuantity() {
		return shareQuantity;
	}

    public void setShareQuantity(Integer shareQuantity) {
    	this.shareQuantity = shareQuantity;
    }

	public Integer getImagesQuantity() {
		return imagesQuantity;
	}

	public void setImagesQuantity(Integer imagesQuantity) {
		this.imagesQuantity = imagesQuantity;
	}

	public Integer getAttributeQuantity() {
		return attributeQuantity;
	}

	public void setAttributeQuantity(Integer attributeQuantity) {
		this.attributeQuantity = attributeQuantity;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[title:" + getTitle() + "]";
		log += "[content:" + getContent() + "]";
		log += "[userId:" + getUserId() + "]";
		log += "[type:" + getType() + "]";
		log += "[parentCategoryCode:" + getParentCategoryCode() + "]";
		log += "[parentCategoryName:" + getParentCategoryName() + "]";
		log += "[subCategoryName:" + getSubCategoryName() + "]";
		log += "[subCategoryCode:" + getSubCategoryCode() + "]";
		log += "[provinceCode:" + getProvinceCode() + "]";
		log += "[provinceName:" + getProvinceName() + "]";
		log += "[cityCode:" + getCityCode() + "]";
		log += "[cityName:" + getCityName() + "]";
		log += "[tags:" + getTags() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		log += "[closeTime:" + getCloseTime() + "]";
		log += "[visibility:" + getVisibility() + "]";
		log += "[state:" + getState() + "]";
		log += "[likeQuantity:" + getLikeQuantity() + "]";
		log += "[commentQuantity:" + getCommentQuantity() + "]";
		log += "[shareQuantity:" + getShareQuantity() + "]";
		return log;
	}
}